use a better and shorter title for input dialog for PIN code
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 18 Mar 2025 10:46:36 +0000 (11:46 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 20 Mar 2025 08:14:49 +0000 (08:14 +0000)
we have to make sure the title is short and easy to understand

if it is too long, it will be truncated giving a bad experience for the
user

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/clientsideencryption.cpp

index c7755fe9276e412b673dbecc1bf665152c1b8128..06432ee295f3032be4530ef2559f53ba9c913cac 100644 (file)
@@ -1144,7 +1144,7 @@ void ClientSideEncryption::initializeHardwareTokenEncryption(QWidget *settingsDi
                 /* perform pkcs #11 login */
                 bool ok;
                 newPin = QInputDialog::getText(settingsDialog,
-                                               tr("PIN needed to login to token"),
+                                               tr("Input PIN code", "Please keep it short and shorter than \"Enter Certificate USB Token PIN:\""),
                                                tr("Enter Certificate USB Token PIN:"),
                                                QLineEdit::Password,
                                                {},